home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
grafik
/
raytracing
/
rayshade-4.0.6.3
/
rayfiles
/
rsdefs
/
docs
/
surfaces.doc
< prev
next >
Wrap
Text File
|
1994-08-09
|
3KB
|
93 lines
Surfaces
========
All surfaces are defined as macros and take a single argument:
"prefix". This allows the creation of a named surface. For example,
"RSSruby(surface jem1)" will create a surface named jem1 that can be used
later as in "sphere jem1 1 0 0 0". Leaving the argument blank will create
an instance of the surface, so "sphere RSSruby() 1 0 0 0" will accomplish
the same thing as the previous example. (Note: named surfaces take less
memory in rayshade if the surface is used more than once.)
The following surfaces are defined:
RSSair(prefix)
RSSambulance(prefix)
RSSaqua_dull(prefix)
RSSaqua_polished(prefix)
RSSbeerbottle(prefix)
RSSbristle_white(prefix)
RSSbrown(prefix)
RSSbrownglass(prefix)
RSSchrome_silver(prefix)
RSScopper_dull(prefix)
RSScopper_polished(prefix)
RSScrystal(prefix)
RSSdiamond(prefix)
RSSdiamond_blue(prefix)
RSSdiamond_brown(prefix)
RSSdiamond_white(prefix)
RSSdiamond_yellow(prefix)
RSSemerald(prefix)
RSSemeralddark(prefix)
RSSemeraldpale(prefix)
RSSfiretruck(prefix)
RSSglass_azure(prefix)
RSSglass_blue(prefix)
RSSglass_green(prefix)
RSSglass_new(prefix)
RSSglass_rihi(prefix)
RSSglass_rilow(prefix)
RSSglass_rimed(prefix)
RSSgold(prefix)
RSSgold_pale(prefix)
RSSgreengrass(prefix)
RSSice(prefix)
RSSnavyglass(prefix)
RSSoliveglossy(prefix)
RSSorangeflat(prefix)
RSSpinkflat(prefix)
RSSplastic(prefix)
RSSplastic_red(prefix)
RSSplastic_yellow(prefix)
RSSporcelain_pink(prefix)
RSSredbrick(prefix)
RSSredflat(prefix)
RSSredglossy(prefix)
RSSredneon(prefix)
RSSruby(prefix)
RSSruby_spinel(prefix)
RSSsapphire(prefix)
RSSsilver(prefix)
RSSsoap_light(prefix)
RSSsteelpolished(prefix)
RSStest_black(prefix)
RSStest_blue(prefix)
RSStest_burgundy(prefix)
RSStest_green(prefix)
RSStest_red(prefix)
RSStest_white(prefix)
RSSturquoiseflat(prefix)
You use them like this:
sphere RSSsilver() 1.0 0.0 0.0 0.0
or:
RSSsilver(surface silver)
sphere silver 1.0 0.0 0.0 0.0
There's enough to get a good idea of what you want. (If you
don't think so, send us some more to add to the list!) Then you can
make your own surface that's a copy of the one closest to what you
need, and edit that. (Please don't edit the .rh files! We're trying
to make a standard here! :)
Their names (hopefully) describe them pretty well. We used
the same test scene to view all the surfaces. That test scene is
included with the Rayshade Standard Header Files release. It's called
'testsurf.ray'.
The file "surfaces.info" contains information useful for creating new
surfaces (refractive indeces and some color info for now).